package diseaseandcureadministration.cure;

import diseaseandcureadministration.Patient;

/**
 * SprayCure is a concrete Cure
 * 
 * @author Peter Tolstrup Aagesen, ptaa@itu.dk
 *
 */
public class SprayCure extends Cure{
	
	public SprayCure(String name, int healFactor)
	{
		//Construct super and set variables
		super();
		setName(name);
		setHealFactor(healFactor);
	}

	@Override
	public void administer(Patient patient) 
	{
		spray(patient);		
	}
	
	/**
	 * spray is a helper method for the
	 * administer implementation
	 * @param patient
	 */
	private void spray(Patient patient)
	{
		patient.heal(getHealFactor());		
	}
}
